﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace YTSK.REF
{
    public partial class FrmVouchWait : Form
    {
        public FrmVouchWaitBase report;
        public FrmVouchWait()
        {
            InitializeComponent();
            report = new FrmVouchWaitBase(this.groupBox2, this.dataGridView1,
                    "YT_9J_LS_View_Pending", this.toolStrip1);
            report.InitControl();
            this.btQuery.Click += report.GetGridData;
            this.Resize += frmMain_Resize;
        }

        #region 窗体大小
        private void frmMain_Resize(object sender, EventArgs e)
        {
            if (this.Width > 20)
            { this.dataGridView1.Width = this.Width - 20; }
            if (this.Height > 200)
            {
                this.dataGridView1.Height = this.Height - 200;
            }
        }
        #endregion


    }
}
